package cn.edu.scau.cmi.wujiaxian.client;

import cn.edu.scau.cmi.wujiaxian.composite.safe.Person;
import cn.edu.scau.cmi.wujiaxian.composite.safe.Team;


public class SafeCompositeClient {

	
	public static void main(String[] args) {
		Team chuangKeKongJian = new Team(null, "创客空间");
		Person linZuanHui = new Person(chuangKeKongJian, "林老师");
		chuangKeKongJian.addChild(linZuanHui);
		
		Team xiaoKeLian = new Team(chuangKeKongJian, "校科联");
		chuangKeKongJian.addChild(xiaoKeLian);
		
		Person xueZhiWei = new Person(xiaoKeLian, "薛总");
		xiaoKeLian.addChild(xueZhiWei);
		
		Team ziKeBu = new Team(xiaoKeLian, "自科部");
		xiaoKeLian.addChild(ziKeBu);
		
		Person huaHua = new Person(ziKeBu, "花花");
		ziKeBu.addChild(huaHua);
		
		Person xingXing = new Person(ziKeBu, "星星");
		ziKeBu.addChild(xingXing);
		
		Team weiLaiChaoShi = new Team(chuangKeKongJian, "未来超市");
		chuangKeKongJian.addChild(weiLaiChaoShi);
		
		System.out.println(chuangKeKongJian);
	}
	
}
